package com.triones.api.service.third;

import com.google.gson.JsonObject;
import org.springframework.http.ResponseEntity;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.Map;

/**
 * 第三方回调 接口
 */
public interface ApiThirdCallbackService {

    /**
     * php卡交易回调
     * @param request
     */
    ResponseEntity<Map<String, Boolean>> phpCardTrade(HttpServletRequest request);

    /**
     * lpt事件回调通知
     * @param request
     */
    ResponseEntity<Map<String, Object>> lptEventNotification(HttpServletRequest request);

    /**
     * lpt交易确认回调通知
     * @param request
     */
    ResponseEntity<Map<String, Object>> lptTradeConfirmNotification(HttpServletRequest request) throws IOException;
}
